package com.spdzen.model;


import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.annotations.TableId;
import java.io.Serializable;


/**
 * <p>
 * 基础数据（城市）
 * </p>
 *
 * @author accountwcx@qq.com
 * @since 2017-03-16
 */
@TableName("spd_base_city")
public class BaseCity extends Model<BaseCity> {

    private static final long serialVersionUID = 1L;


	@TableId("id")
	private Integer id;
    /**
     * 外键spd_base_province.id
     */

	@TableField("parent_id")
	private Integer parentId;
    /**
     * 行政区编码
     */

	@TableField("code")
	private String code;
    /**
     * 上级行政区编码
     */

	@TableField("parent_code")
	private String parentCode;
    /**
     * 城市名称
     */

	@TableField("name")
	private String name;
    /**
     * 是否已删除，0表示未删除，1表示已删除
     */

	@TableField("is_deleted")
	private Integer isDeleted;


	public Integer getId() {
		return id;
	}

	public BaseCity setId(Integer id) {
		this.id = id;
		return this;
	}

	public Integer getParentId() {
		return parentId;
	}

	public BaseCity setParentId(Integer parentId) {
		this.parentId = parentId;
		return this;
	}

	public String getCode() {
		return code;
	}

	public BaseCity setCode(String code) {
		this.code = code;
		return this;
	}

	public String getParentCode() {
		return parentCode;
	}

	public BaseCity setParentCode(String parentCode) {
		this.parentCode = parentCode;
		return this;
	}

	public String getName() {
		return name;
	}

	public BaseCity setName(String name) {
		this.name = name;
		return this;
	}

	public Integer getIsDeleted() {
		return isDeleted;
	}

	public BaseCity setIsDeleted(Integer isDeleted) {
		this.isDeleted = isDeleted;
		return this;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

}